﻿@model IEnumerable<PartyManagement.Models.Menu>

@{
    ViewBag.Title = "Index";
   Layout = "~/Views/Shared/_MyLayout.cshtml";
}

<h2>Menu</h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.menuName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Event.eventName)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.menuName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Event.eventName)
        </td>
        <td>
             @Html.ActionLink("Edit", "Edit", new { id=item.menuID }) |
            @Html.ActionLink("Details", "Details", new { id=item.menuID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.menuID })
        
        
        </td>
    </tr>
}

</table>
